package com.codes.core.utils;

import com.codes.core.common.CConstant;
import org.docx4j.wml.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @Date 2020/5/27 15:15
 * @Created by peanut
 */
public class UserUtil {

    //获取 session 用户
    public  static Map getSessionUser(HttpServletRequest request){
        Map<String,Object> userMap = null;
        HttpSession session = request.getSession();
        userMap= (Map)session.getAttribute(CConstant.SESSIONUSER);
        return userMap;

    }


}